import request from '@/utils/request'

// 查询往来单位类型列表
export function listRelateUnitType(query) {
  return request({
    url: '/base/relateUnitType/list',
    method: 'get',
    params: query
  })
}

// 查询往来单位类型详细
export function getRelateUnitType(id) {
  return request({
    url: '/base/relateUnitType/' + id,
    method: 'get'
  })
}

// 新增往来单位类型
export function addRelateUnitType(data) {
  return request({
    url: '/base/relateUnitType',
    method: 'post',
    data: data
  })
}

// 修改往来单位类型
export function updateRelateUnitType(data) {
  return request({
    url: '/base/relateUnitType',
    method: 'put',
    data: data
  })
}

// 删除往来单位类型
export function delRelateUnitType(id) {
  return request({
    url: '/base/relateUnitType/' + id,
    method: 'delete'
  })
}
